home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Idle
/
Postponer.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
577b
|
41 lines
// Postponer.h
#ifndef Postponer_h
#define Postponer_h
#ifndef ListLink_h
#include "ListLink.h"
#endif
#ifndef Tick_h
#include "Tick.h"
#endif
#ifndef ListOf_h
#include "ListOf.h"
#endif
class Method;
class Postponer
{
private:
ListLink< Postponer > link;
const Method& perform;
static ListOf< Postponer >& TheList();
public:
Postponer( const Method& );
~Postponer();
bool Pending() const { return link.Owned(); }
void Schedule();
void Cancel();
void Flush();
static void Execute( Tick stop );
static bool CanSleep();
};
#endif